Skip to content

Add the types for id_token and token_type for openid scope#32

Open
mouhannad-sh wants to merge 1 commit intolinkedin-developers:masterfrom
mouhannad-sh:master
Open

Add the types for id_token and token_type for openid scope#32
mouhannad-sh wants to merge 1 commit intolinkedin-developers:masterfrom
mouhannad-sh:master

Conversation

@mouhannad-sh
Copy link
Copy Markdown

@mouhannad-sh mouhannad-sh commented Jul 26, 2024

Based on the MS documentation

when we perform a successful 3 legged OAuth with openid and profile scopes, the api will return the id_token and token_type properties.

I noticed that this was missing from the library, hence the PR

Thanks

Copy link
Copy Markdown

@ZLeventer ZLeventer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the right fix — id_token and token_type are both missing from the response type. I submitted #41 addressing the same gap.

One note: token_type should probably be required (not optional) since it's always returned per RFC 6749 §5.1, while id_token should be optional since it's only present when openid scope is requested. Worth checking if this PR makes that distinction.

Also filed #43 to track this as an issue independently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants